<? $section='Login'; ?>
<?
        include_once('inc/functions.php');
        require_once('inc/authentication.php');
?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
	<div id="centerThis">
	<? include('inc/tabs.php');?>
        <? include('inc/header.php'); ?>
        <? include('inc/nav.php'); ?>
	</div>
    <div id="container">	
        <h1>Welcome to my site</h1>
    <? if(IsLoggedIn()){ ?>
        <h2>Welcome <?=GetUserName()?></h2>
<a href="index.php" onclick="logout()"><img src="inc/logoutbutton.png" length=15% width=15%/></a>

    <? include('inc/footer.php'); ?>
    <? }else{ ?>
        <h2>You need to <a href="login.php" >Log In</a></h2>

		<h3>Not Registered? Make an account by clicking <a href="../2011/Users/edit.php">here</a></h3>
    <? } ?>

<script type="text/javascript">
                    function logout(){
                <?php session_destroy();?>
            }
</script>
 


</div>
</body>


</html>